#:kivy 2.0.0

<VideoSplitterApp>:
    canvas.before:
        Color:
            rgba: 0.95, 0.95, 0.95, 1
        Rectangle:
            pos: self.pos
            size: self.size

<Button>:
    font_size: '16sp'
    font_name: 'Chinese'
    bold: True
    border: (2, 2, 2, 2)
    background_normal: ''
    canvas.before:
        Color:
            rgba: self.background_color if self.background_color else (0.3, 0.6, 0.9, 1)
        RoundedRectangle:
            pos: self.pos
            size: self.size
            radius: [8, 8, 8, 8]
    canvas.after:
        Color:
            rgba: 1, 1, 1, 0.3 if self.state == 'down' else 0
        RoundedRectangle:
            pos: self.pos
            size: self.size
            radius: [8, 8, 8, 8]

<Button>:
    disabled_color: 0.6, 0.6, 0.6, 1
    canvas.before:
        Color:
            rgba: (0.7, 0.7, 0.7, 1) if self.disabled else (self.background_color if self.background_color else (0.3, 0.6, 0.9, 1))
        RoundedRectangle:
            pos: self.pos
            size: self.size
            radius: [8, 8, 8, 8]

<Label>:
    font_size: '14sp'
    font_name: 'Chinese'
    text_size: self.size
    halign: 'center'
    valign: 'middle'

<Slider>:
    canvas.before:
        Color:
            rgba: 0.3, 0.6, 0.9, 1
        Rectangle:
            pos: self.x, self.center_y - 2
            size: self.width * (self.value - self.min) / (self.max - self.min), 4
        Color:
            rgba: 0.8, 0.8, 0.8, 1
        Rectangle:
            pos: self.x + self.width * (self.value - self.min) / (self.max - self.min), self.center_y - 2
            size: self.width * (self.max - self.value) / (self.max - self.min), 4
        Color:
            rgba: 0.2, 0.4, 0.8, 1
        Ellipse:
            pos: self.x + self.width * (self.value - self.min) / (self.max - self.min) - 8, self.center_y - 8
            size: 16, 16

<Spinner>:
    font_size: '14sp'
    background_color: 1, 1, 1, 1
    canvas.before:
        Color:
            rgba: 1, 1, 1, 1
        RoundedRectangle:
            pos: self.pos
            size: self.size
            radius: [4, 4, 4, 4]
        Color:
            rgba: 0.8, 0.8, 0.8, 1
        Line:
            rounded_rectangle: self.x, self.y, self.width, self.height, 4
            width: 1

<ProgressBar>:
    canvas.before:
        Color:
            rgba: 0.9, 0.9, 0.9, 1
        RoundedRectangle:
            pos: self.pos
            size: self.size
            radius: [4, 4, 4, 4]
        Color:
            rgba: 0.2, 0.8, 0.2, 1
        RoundedRectangle:
            pos: self.pos
            size: self.width * (self.value / self.max) if self.max > 0 else 0, self.height
            radius: [4, 4, 4, 4]

<FileChooserListView>:
    canvas.before:
        Color:
            rgba: 1, 1, 1, 1
        Rectangle:
            pos: self.pos
            size: self.size

<Popup>:
    title_color: 0.2, 0.2, 0.2, 1
    title_size: '18sp'
    separator_color: 0.8, 0.8, 0.8, 1
    background_color: 1, 1, 1, 1
    canvas.before:
        Color:
            rgba: 0, 0, 0, 0.5
        Rectangle:
            pos: Window.pos
            size: Window.size
        Color:
            rgba: 1, 1, 1, 1
        RoundedRectangle:
            pos: self.pos
            size: self.size
            radius: [10, 10, 10, 10]
        Color:
            rgba: 0.8, 0.8, 0.8, 1
        Line:
            rounded_rectangle: self.x, self.y, self.width, self.height, 10
            width: 1